<div class="panel panel-default m-n">
    <div class="panel-heading">赠送优惠券</div>
    <div class="panel-body">
        <form name="giveCouponsForm" class="bs-example form-horizontal ng-pristine ng-valid"  ng-submit="give()">
            <div class="form-group padder-md">
                <p class="inline m-t-sm">优惠卷</p>
                <div class="inline m-l-sm">
                    <select class="form-control w-sm inline m-r-xs" name="coupons" ng-model="coupons.couponsId" required>
                        <option value="">请选择优惠卷</option>
                        <option ng-repeat="c in couponsList" value="{{c.id}}" >{{c.name}}</option>
                    </select>
                </div>
                <div class="block">
                    <div class="form-text" ng-if="giveCouponsForm.coupons.$touched">
                        <span class="text-danger" ng-if="giveCouponsForm.coupons.$error.required">(请您选择赠送的优惠券)</span>
                    </div>
                </div>
            </div>
            <div class="form-group">
                <div class="col-lg-12 text-right padder-md">
                    <button type="submit" class="btn btn-sm btn-info" ng-disabled="giveCouponsForm.$invalid">保存</button>
                    <div class="btn btn-sm btn-default" ng-click="cancel()">取消</div>
                </div>
            </div>
        </form>
    </div>
</div>

